import { http } from './http'
import { PageQueryParams, PageResponse } from '@/config/page'

export interface DocSearchQueryParams extends PageQueryParams{
  contentType?: string;

  keyword?: string;

  modifiedTime?: string[];

  docSize?: number[];
}

/**
 * 获取文件历史列表。
 */
export function searchDocs (params: DocSearchQueryParams) {
  return http().post<PageResponse<any>>('/api/document/doc-search/query', params, { timeout: 1000 * 180 })
}
